package m2.service;

import m2.port.PortRequis;

public class ServiceRequis extends Service {

	protected PortRequis portRequis;

	public ServiceRequis(String name) {
		super(name);
	}

	@Override
	public void update(Object o,Object arg) {
		//System.out.println(name+ " "+ arg);
		System.out.println();
		notifyObservers(arg);
	}

	public PortRequis getPortRequis() {
		return portRequis;
	}

	public void setPortRequis(PortRequis portRequis) {
		portRequis.addObserver(this);
		this.portRequis = portRequis;
	}
}
